]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Do not wrongly enable window button
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 7 Sep 2023 15:59:03 +0000 (17:59 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 7 Sep 2023 16:23:29 +0000 (18:23 +0200)
commit521525948eed85cc27c0796a0b9569d161df81ba
tree8506ad1d79d39aba521a10c6fb771d76478a568e
parent8e30158c46f500d51b4376a975a6d9aac2ac5928
screenshot: Do not wrongly enable window button

The window button is disabled when
 - there are no windows
 - we are in screen-recording mode
 - the session mode doesn't allow windows

However the last condition is only taken into account when
opening the dialog, but not when switching from recording-
to screenshot mode.

Address this by updating the button's sensitivity in a separate
function, so the different conditions are considered consistently.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6990

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2944>
js/ui/screenshot.js